package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZhiSuoCarBoxRowMapper implements RowMapper<ZhiSuoCarBox> {

    @Override
    public ZhiSuoCarBox mapRow(ResultSet rs, int rowNum) throws SQLException {
        ZhiSuoCarBox car = new ZhiSuoCarBox();
        car.setId(rs.getInt("id"));
        car.setCarid(rs.getInt("carid"));
        car.setCode(rs.getString("code"));
        car.setIsempty(rs.getInt("isempty"));
        car.setContent(rs.getString("boxcontent"));
        car.setName(rs.getString("name"));
        car.setCreate_time(rs.getTimestamp("create_time"));
        car.setStatus(rs.getInt("status"));
        car.setPos(rs.getString("pos"));
        return car;
    }

}
